package com.sawyerqiu.agent;

import java.lang.instrument.Instrumentation;

/**
 * @author : SawyerQiu
 * @date : 2024/7/29 18:16
 */
public class MyAgent {

    public static Instrumentation instrumentation;

    public static void agentmain(String args, Instrumentation instrumentation){
        premain(args, instrumentation);
    }

    private static void premain(String args, Instrumentation instrumentation) {
        MyAgent.instrumentation = instrumentation;
        System.out.println("hotswap agent init finish");
    }

}
